<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>失败通知</title>
</head>
<body>
<h1>${msg}</h1>
浏览器将在<span id="wait">5</span>秒后自动跳转，如果没有跳转请<a id="href" href="${url}">点击这里</a>
<script type="text/javascript">
    function countDown(secs){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        wait.innerText=secs;
        if(secs-->0){
            setTimeout(function(){
                countDown(secs);
            },1000);
        }
        if(secs==-1){
            location.href = href;
        }
    }
    countDown(5);
</script>
</body>
</html>
